% generates sample
%

%------------------------------------------------------------------------- 

\documentclass[11pt]{book}

\input{macros.sty}
\usepackage{makeidx}
\makeindex

%------------------------------------------------------------------------- 

\begin{document}

%------------------------------------------------------------------------- 

%
% Front Matter
%

\frontmatter
\input{frontmatter}

%------------------------------------------------------------------------- 

%
% Main Document
%

\newpage
\mainmatter

\pagestyle{plain}
\pagenumbering{arabic}
\setcounter{page}{1}

%------------------------------------------------------------------------- 

\input{ch1}

\input{ch2}

\input{ch3}

\input{ch4}

%-------------------------------------------------------------------------

%
% Back Matter

\newpage
\backmatter

%-------------------------------------------------------------------------

\input{acknowledge}

\newpage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{example}
\bibliographystyle{alpha}

\newpage
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
